$(document).ready(function(){
	
	$('#fileTable tr').children().find("button").css('display','none');
	
	$('#fileTable tr').mouseover(function() {
		  //alert('over');moreButton
		 $(this).children().find("button").show();
		//$('#fileTable tr button').css('display','none');
	});
	$('#fileTable tr').mouseout(function() {
		$(this).children().find("button").hide();
	});

    function setDetailPosition(caller) {
        var left = findPosX(caller);
        var top = findPosY(caller);
        var modal = jQuery("#detailModal"); 
        detailModal.css({
            "position": "absolute",
            "top": top,
            "left": left
        }); 
        
    }  
    function findPosX(obj)
    {
      var curleft = 0;
      if(obj.offsetParent)
          while(1) 
          {
            curleft += obj.offsetLeft;
            if(!obj.offsetParent)
              break;
            obj = obj.offsetParent;
          }
      else if(obj.x)
          curleft += obj.x;
      return curleft;
    }

    function findPosY(obj)
    {
      var curtop = 0;
      if(obj.offsetParent)
          while(1)
          {
            curtop += obj.offsetTop;
            if(!obj.offsetParent)
              break;
            obj = obj.offsetParent;
          }
      else if(obj.y)
          curtop += obj.y;
      return curtop;
    }

	
});
